package com.behavior.visitor.example.visitor;

import com.behavior.visitor.example.user.impl.Student;
import com.behavior.visitor.example.user.impl.Teacher;

/**
 * <p></p>
 *
 * @author jiuhua.xu
 * @version 1.0
 * @since JDK 1.8
 */
public interface Visitor {
    // 访问学生信息
    void visit(Student student);

    // 访问老师信息
    void visit(Teacher teacher);
}
